package com.zsk.daily.accumulation.core.service.user.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zsk.daily.accumulation.core.service.user.UserInfoService;
import com.zsk.daily.accumulation.dal.mapper.UserInfoMapper;
import com.zsk.daily.accumulation.dal.model.UserInfoDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author huxl
 * @version :1.0
 */
@Service
public class UserInfoServiceImpl extends ServiceImpl<UserInfoMapper, UserInfoDO> implements UserInfoService {

    @Autowired
    UserInfoMapper userInfoMapper;

    /**
     * 获取用户信息
     *
     * @param id       id
     * @param name     名字
     * @param maxAge   最大年龄
     * @param deptName 部门名称
     * @return {@link List}<{@link UserInfoDO}>
     */
    @Override
    public List<UserInfoDO> getUserInfo(Long id, String name, Integer maxAge, String deptName) {
        return userInfoMapper.getUserInfo(id, name, maxAge, deptName);
    }
}